<template>
  <view class="user">
    <!-- 未登录页面 -->
    <user-login v-if="!token"></user-login>
    <!-- 登录页面 -->
    <user-info v-else></user-info>
  </view>
</template>

<script>
  import mixin from '@/mixin'
  import {mapGetters} from 'vuex'
  export default {
    mixins: [mixin],
    data() {
      return {
        
      };
    },
    computed:{
      ...mapGetters(['token'])
    }
  }
</script>

<style lang="scss">
Page,.user{
  height: 100%;
}
</style>
